<?php
require_once './ApiClient.php';

$param = array(
  'username' => '程焱123',
  'password' => '123456',
  'email' => '849136285@qq.com'
);

//改
$api_url = 'http://www.restful.com/user/2'; 
$rest = new restClient($api_url, $param, 'put');
$info = $rest->doRequest();

echo '<pre/>';
print_r($info);exit;